package com.hzw.dao;

import com.hzw.bean.LikeRelation;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

@Repository
public interface LikeRelationMapper extends Mapper<LikeRelation> {
    int updateLikeFlag(@Param("userId") String userId, @Param("articleId") String articleId, @Param("likeFlag") int likeFlag);

    LikeRelation selectByTwoId(@Param("userId") String userId, @Param("articleId") String articleId);

    //int getLikeFlag(@Param("userId") String userId, @Param("articleId") String articleId);
}